package io.gitee.zhangbinhub.admin.resource.server

import com.fasterxml.jackson.databind.ObjectMapper
import io.gitee.zhangbinhub.acp.boot.log.LogAdapter
import io.gitee.zhangbinhub.admin.resource.server.tools.TokenTools
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.context.annotation.Bean

/**
 * @author zhang by 30/07/2019
 * @since JDK 11
 */
@AutoConfiguration
class AcpAdminResourceServerComponentAutoConfiguration {
    @Bean
    fun tokenTools(logAdapter: LogAdapter, objectMapper: ObjectMapper): TokenTools =
        TokenTools(logAdapter, objectMapper)
}